package com.unlcn.ils.kas.dao.model.order;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 拉取订单日志表
 * </p>
 *
 * @author qichao
 * @since 2018-04-17
 */
@TableName("kas_push_order_log")
public class PushOrderLog extends Model<PushOrderLog> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 1为股份；2为控股；3为五十铃
	 */
	private Integer type;
	/**
	 * 数据量
	 */
	@TableField("data_num")
	private Integer dataNum;
	/**
	 * 已经执行数
	 */
	@TableField("execut_num")
	private Integer executNum;
	/**
	 * 插入数
	 */
	@TableField("insert_num")
	private Integer insertNum;
	/**
	 * 更新数
	 */
	@TableField("update_num")
	private Integer updateNum;

	@TableField("ignore_num")
	private int ignoreNum;
	/**
	 * 异常数
	 */
	@TableField("abnormal_num")
	private Integer abnormalNum;
	/**
	 * 开始执行时间
	 */
	@TableField("start_execut_time")
	private Date startExecutTime;
	/**
	 * 完成执行时间
	 */
	@TableField("finsh_execut_time")
	private Date finshExecutTime;

	/**
	 * 拉取线程名称
	 * 
	 * @return
	 */
	@TableField("push_thread_name")
	private String pushThreadName;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getDataNum() {
		return dataNum;
	}

	public void setDataNum(Integer dataNum) {
		this.dataNum = dataNum;
	}

	public Integer getExecutNum() {
		return executNum;
	}

	public void setExecutNum(Integer executNum) {
		this.executNum = executNum;
	}

	public Integer getInsertNum() {
		return insertNum;
	}

	public void setInsertNum(Integer insertNum) {
		this.insertNum = insertNum;
	}

	public Integer getUpdateNum() {
		return updateNum;
	}

	public void setUpdateNum(Integer updateNum) {
		this.updateNum = updateNum;
	}

	public Integer getAbnormalNum() {
		return abnormalNum;
	}

	public void setAbnormalNum(Integer abnormalNum) {
		this.abnormalNum = abnormalNum;
	}

	public Date getStartExecutTime() {
		return startExecutTime;
	}

	public void setStartExecutTime(Date startExecutTime) {
		this.startExecutTime = startExecutTime;
	}

	public Date getFinshExecutTime() {
		return finshExecutTime;
	}

	public void setFinshExecutTime(Date finshExecutTime) {
		this.finshExecutTime = finshExecutTime;
	}

	public String getPushThreadName() {
		return pushThreadName;
	}

	public void setPushThreadName(String pushThreadName) {
		this.pushThreadName = pushThreadName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public int getIgnoreNum() {
		return ignoreNum;
	}

	public void setIgnoreNum(int ignoreNum) {
		this.ignoreNum = ignoreNum;
	}

	@Override
	public String toString() {
		return "PushOrderLog [abnormalNum=" + abnormalNum + ", dataNum=" + dataNum + ", executNum=" + executNum
				+ ", finshExecutTime=" + finshExecutTime + ", id=" + id + ", ignoreNum=" + ignoreNum + ", insertNum="
				+ insertNum + ", pushThreadName=" + pushThreadName + ", startExecutTime=" + startExecutTime + ", type=" + type
				+ ", updateNum=" + updateNum + "]";
	}
}
